package org.yzh.protocol;

import io.github.yezhihao.protostar.DataType;
import io.github.yezhihao.protostar.annotation.Field;
import io.github.yezhihao.protostar.annotation.Message;
import org.yzh.protocol.basics.GTMessage;
import org.yzh.protocol.commons.GTID;

import java.time.LocalDateTime;

/**
 * @author yezhihao
 * @home https://gitee.com/yezhihao/jt808-server
 */
@Message(GTID.平台登出)
public class PlatformLogout extends GTMessage {

    @Field(index = 0, type = DataType.BYTES, length = 6, desc = "数据采集时间")
    private LocalDateTime deviceTime;
    @Field(index = 2, type = DataType.WORD, desc = "登入流水号")
    private int serialNo;

    public LocalDateTime getDeviceTime() {
        return deviceTime;
    }

    public void setDeviceTime(LocalDateTime deviceTime) {
        this.deviceTime = deviceTime;
    }

    @Override
    public int getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(int serialNo) {
        this.serialNo = serialNo;
    }
}